package org.linys.service.sale;

import java.util.List;

import org.linys.dao.sale.SaleFeeDAO;
import org.linys.model.sale.SaleFee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SaleFeeServ {
	private SaleFeeDAO saleFeeDAO;
	
	public int save(SaleFee saleFee) {
		return saleFeeDAO.save(saleFee);
	}
	public SaleFeeDAO getSaleFeeDAO() {
		return saleFeeDAO;
	}
	@Autowired
	public void setSaleFeeDAO(SaleFeeDAO saleFeeDAO) {
		this.saleFeeDAO = saleFeeDAO;
	}
	public List<SaleFee> getBySaleID(Integer saleID) {
		return saleFeeDAO.getBySaleID(saleID);
	}
	

}
